<div class="panel panel-inverse" data-sortable-id="table-basic-4">
    <div class="panel-heading">
        <h4 class="panel-title">卡券分组列表</h4>
    </div>
    <div class="panel-body">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th style="width: 10%">分组ID</th>
                <th style="width: 10%">分组名称</th>
                <th style="width: 10%">卡券数</th>
                <th style="width: 10%">创建时间</th>
                <th style="width: 10%">状态</th>
                <th style="width: 10%">操作</th>
            </tr>
            </thead>
            <tbody>
            <#if paginationResponse.content?has_content && paginationResponse.content?exists && paginationResponse.content?size gt 0>
                <#list paginationResponse.content as ct>
                <tr>
                    <td> ${ct.id}</td>
                    <td> ${ct.name}</td>
                    <td> <#if (ct.num > 0)>${ct.num} <#else> 0 </#if></td>
                    <td> ${ct.createTime}</td>
                    <td>
                        <#if ct.status == "A">
                        <span class="status-active">有效</span>
                        <#else>
                        <span class="status-disabled">无效</span>
                        </#if>
                    </td>
                    <td>
                        <a class="label label-success small-btn" href="javascript:getData('${rc.contextPath}/backend/coupon/index?EQ_groupId=${ct.id}','displayArea');" title="卡券"><i class="fa fa-file-text"></i>卡券</a>
                        <a class="label label-success small-btn" href="javascript:getData('${rc.contextPath}/backend/couponGroup/couponGroupEditInit/${ct.id}','displayArea')" title="编辑"><i class="fa fa-edit"></i>编辑</a>
                        <a class="label label-danger small-btn" href="javascript:removeCouponGroup('${ct.id}')" title="删除"><i class="fa fa-remove"></i>删除</a>
                    </td>
                </tr>
                </#list>
            <#else>
            <tr class="gradeA even" role="row">
                <td colspan="8" class="text-center">没有符合条件的数据！</td>
            </tr>
            </#if>
            </tbody>
        </table>
        <!-- 分页组件 -->
        <!-- recordBean 分页查询结果Bean  action 分页请求URL formName 分页需要的查询参数的表单名称 -->
    <@sp.pagination recordBean=paginationResponse action="${rc.contextPath}/backend/couponGroup/queryList"
    area="activityGroupList" formName="activityGroupForm"/>
    </div>
</div>